<template>
  <!-- 写评论 -->
  <div>
    <!-- 写评论 -->
    <div class="com-txt">
      <!-- 输入文本框 -->
      <el-input
        type="textarea"
        :rows="8"
        placeholder="请输入内容"
        v-model="textarea"
        maxlength="9999"
        show-word-limit
      >
      </el-input>
    </div>
    <!-- 发布评论按钮 -->
    <div class="btn">
      <span class="btn-com">评论</span>
    </div>
  </div>
</template>

<script>
  export default {
    name: 'WriteCmt',
    data() {
      return {
        textarea: '',
      };
    },
  };
</script>

<style lang="less" scoped>
  .com-txt {
    height: 185px;
    margin-bottom: 10px;
    .el-textarea {
      .el-textarea__inner {
        width: 100%;
        padding: 10px;
      }
    }
  }
  //  发布按钮
  .btn {
    display: flex;
    justify-content: end;
    padding-right: 15px;
    .btn-com {
      display: block;
      width: 60px;
      height: 29px;
      color: #fff;
      font-weight: 600;
      cursor: pointer;
      text-align: center;
      line-height: 29px;
      border-radius: 8px;
      background-color: salmon;
    }
  }
</style>
